<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css的背景属性讲解</title>
    <style type="text/css">
        .bg{
            width: 500px;
            height: 500px;
            border: 2px solid green;
            background-color: gray;
            background-image: url(../images/scholl_flower.jpeg);
            /* 平铺方式 */
            background-repeat: nrepeat;
            /* 背景定位 */
            background-position: 50px 100px;
        }
    </style>
</head>
<body>
    <div class="bg">

    </div>
</body>
</html>